﻿using System.Collections.Generic;
using Kobets.Automation.Chimera.Common.Models;

namespace Kobets.Automation.Chimera.Common
{
    public class RoleComparer : IEqualityComparer<Role>
    {
        public bool Equals(Role x, Role y)
        {
            return x.Id == y.Id;
        }

        public int GetHashCode(Role obj)
        {
            return obj.Id.GetHashCode();
        }
    }
}
